#ifndef __MAIN_H__
#define __MAIN_H__
// ------------------------------------------------------------------------------
//   Includes
// ------------------------------------------------------------------------------

#include <iostream>
#include <stdio.h>
#include <cstdlib>
#include <unistd.h>
#include <cmath>
#include <string.h>
#include <inttypes.h>
#include <fstream>
#include <signal.h>
#include <time.h>
#include <sys/time.h>

using std::string;
using namespace std;

#include <common/mavlink.h>

#include "pilot/autopilot_interface.h"
#include "pilot/serial_port.h"
#include "commander/commander.h"
#include "vision/common/uart_common.h"

int main(int argc, char **argv);

int top(int argc, char **argv);

void fly(autopilot_interface_c &api, xy_network_c &xy_network);

// quit handler
autopilot_interface_c *autopilot_interface_quit;
serial_port_c *serial_port_quit;
extern uint8_t wireless_bad_flag;
void quit_handler( int sig );

#endif

